//////////////////////////////////////////////////////////////////////
//!\file StatusBar.hpp
//!\brief Subclassed QStatusBar.
//!\author timmsusa@googlemail.com
//////////////////////////////////////////////////////////////////////

#ifndef STATUSBAR_HPP
#define STATUSBAR_HPP

#include <QWidget>
#include <QStatusBar>
#include <QLabel>
#include <QString>
#include <QProgressBar>

class StatusBar : public QStatusBar
{
    Q_OBJECT
public:
    explicit StatusBar(QStatusBar *parent = 0);
    void setLabelTxt(const QString& txt);
    void showProgressBar();
    void hideProgressBar();
    void setProgressBar(int perc);
    void setProgressBarMax(int maxVal);
    int  getProgressBarMax() const;

signals:

public slots:
private:
    QProgressBar *m_ProgressBar;
    int m_ProgressBarCount;
    int m_ProgressBarMax;
    QLabel *m_LabelLeft;
};

#endif // STATUSBAR_HPP
